﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace Sensor_Entity
{
    [BsonIgnoreExtraElements]
    public class product_sensor_value
    {
        public long value_id { get; set; }
        /// <summary>
        ///产品ID
        /// </summary>
        public string product_id { get; set; }
        /// <summary>
        ///  产品下传感器ID
        /// </summary>
        public string product_sensor_id { get; set; }
        /// <summary>
        /// SN
        /// </summary>
        public string sn { get; set; }
        /// <summary>
        /// 接收头
        /// </summary>
        public string head { get; set; }
        [BsonRepresentation(BsonType.Double, AllowTruncation = true)]
        /// <summary>
        /// 提交的值
        /// </summary>
        public float value { get; set; }
        /// <summary>
        /// 上传数据时间
        /// </summary>
        public DateTime addtime { get; set; } = DateTime.Now;
    }
}
